****************************************
****************************************
* MASTER .DO FILE FOR ENDOGENOUS FIRM 
* COMPETITION AND THE CYCLICALITY OF 
* MARKUPS
****************************************
****************************************


/**********************************************************************/
/*  SECTION 0: Set directories  			
    
	Important: make sure that you have set the pathinit global to the directory 
	where the Replication_files folder is in your computer.

*/
/**********************************************************************/

clear
set more off
set max_memory 250g, perm
set seed 123456789

global pathinit "/Users/luigcaloi/Dropbox/PhD/Projects/MarkupCyclicality/2013_Endogenous_Firm_Competition/Final_draft/Replication_files/stata_files"

global data "${pathinit}/Data"
global figures "${pathinit}/Figures"
global tables "${pathinit}/Tables"
global code "${pathinit}/Code"

/*------------------------------------ End of SECTION 0 ------------------------------------*/

/**********************************************************************/
/*  SECTION 1: Replicate evidence from the data  			
    Notes: 
	
	compustat_cleaning.do cleans the Compustat data.
	compustat_analysis.do replicates all the evidence from the paper using the Compustat data.
	newzealand.do replicates all the evidence from the paper using the New Zealand data.

*/
/**********************************************************************/

do "${code}/compustat_cleaning.do"

do "${code}/compustat_analysis.do"

do "${code}/newzealand.do"

/*------------------------------------ End of SECTION 1 ------------------------------------*/




